home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / GNUUCP_2 / SOURCE / SYSDEP.H < prev    next >
Text File  |  1990-06-17  |  3KB  |  104 lines

  1. /*
  2.  * @(#)sysdep.h 1.4 87/09/23    Copyright 1987 Free Software Foundation, Inc.
  3.  *
  4.  * Copying and use of this program are controlled by the terms of the
  5.  * GNU Emacs General Public License.
  6.  *
  7.  * Declarations of gnuucp's system-dependent routines, which
  8.  * are in the file sysdep.c (a link to one of many system dependent
  9.  * implementations).
  10.  */
  11.  
  12. /*
  13.  * Returns a temp filename, in a static buffer, to use while
  14.  * receiving the file whose name is passed as argument.
  15.  */
  16. char *    temp_filename();
  17.  
  18. /*
  19.  * Returns a filename, in a static buffer, which should be used
  20.  * on the local system to access the file named in a uucp control
  21.  * file (the argument).  E.g. it might turn D.foobarX1234 into
  22.  * foobar\X1234.D on MSDOS, or to D./D.foobarX1234 on Unix.
  23.  */
  24. char *    munge_filename();
  25.  
  26. /*
  27.  * Basement level I/O routines
  28.  *
  29.  * xwrite() writes a character string to the serial port
  30.  * xgetc() returns a character from the serial port, or an EOF for timeout.
  31.  * sigint() restores the state of the serial port on exit.
  32.  * openline() opens a serial port for an incoming call, waiting for carrier.
  33.  * openout() opens a serial port for an outgoing call.
  34.  */
  35. int xwrite();        /* buffer, count */
  36. int xgetc();        /* No arg */
  37. void sigint();        /* No arg */
  38.  
  39. #define NO_PORT 999
  40.  
  41. extern SPortSel OpenPort;
  42. extern int inRefNum;
  43. extern int outRefNum;
  44. int openline();        /* ttyname, baud */
  45. int openout();        /* ttyname, baud */
  46.  
  47. /*
  48.  * Uucp work queue scan.
  49.  *
  50.  * gotsome = work_scan(hostname, type);
  51.  *
  52.  * Hostname is a string, e.g. "hoptoad", or (char *)NULL for all hostnames.
  53.  * Type is a string, indicating the type of file:
  54.  *    "C"    control file, holding file transfer commands for host
  55.  *    "D"    data file, holding data to go to host
  56.  *    "X"    execute file, holding shell commands to execute here (host??)
  57.  *    "LCK"    lock files, holding execlusive access to dialers and systems
  58.  *    "STST"    system status files, holding status info about systems
  59.  * Result is 1 if there is work, 0 if none.  If result is 1, and work_scan
  60.  * is called a second time without an intervening work_done, it won't
  61.  * rescan the directory but simply returns a 1.
  62.  *
  63.  * workfile = work_next();
  64.  *
  65.  * Result is char * to static filename; or NULL if no more.
  66.  * We only read the directory once.  If callers want more to rescan it
  67.  * in case more work is here, they should call work_scan again.
  68.  *
  69.  * void work_done();
  70.  * Clean up a work scan.  No need to call this if work_next returned NULL;
  71.  * it has cleaned up.
  72.  */
  73. extern int work_scan();
  74. extern char *work_next();
  75. extern void work_done();
  76.  
  77. /*
  78.  * System-dependent default control file name.
  79.  */
  80. extern char sysdep_control[];
  81.  
  82. /*
  83.  * Routine to return a string that gives the current date and time, and
  84.  * identifies the current process, if on a multiprocess system.
  85.  */
  86. extern char *time_and_pid();
  87.  
  88. /******************************************************************************
  89.  OSChecks.h
  90.  
  91.         Declarations for Operating System Checks Module
  92.         
  93.         Copyright ⌐ 1989 Symantec Corporation. All rights reserved.
  94.         
  95.  ******************************************************************************/
  96.  
  97. #define _H_OSChecks
  98.  
  99.         /** Exported Functions **/
  100.  
  101.      Boolean        TrapAvailable(short trapNum, short tType);
  102.      Boolean        WNEIsImplemented(void);
  103.      Boolean        TempMemCallsAvailable(void);
  104.      Boolean        ColorQDIsPresent(void);